package jr.service.impl;

import jr.dao.IBookInfoDao;
import jr.dao.impl.BookInfoDaoImpl;
import jr.pojo.BookInfo;
import jr.service.IBookInfoService;
import jr.util.PageHelper;

import java.util.ArrayList;

public class BookInfoServiceImpl implements IBookInfoService {

    private IBookInfoDao ibid=new BookInfoDaoImpl();

    @Override
    public int queryPageDateCount() {
        return ibid.selectPageDateCount();
    }

    @Override
    public ArrayList<BookInfo> queryIndexDate(PageHelper ph) {
        return ibid.selectIndexDate(ph);
    }

    @Override
    public int queryPageDateCountLike(BookInfo bi) {
        return ibid.selectPageDateCountLike(bi).size();
    }

    @Override
    public ArrayList<BookInfo> queryIndexDateLike(BookInfo bi, PageHelper ph) {
        return ibid.selectIndexDateLike(bi, ph);
    }
}
